package com.ssm.service.impl;

import com.ssm.dao.DeskMapper;
import com.ssm.entity.Desk;
import com.ssm.service.DeskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeskServiceImpl implements DeskService {

    @Autowired
    private DeskMapper deskMapper;

    @Override
    public int deleteByPrimaryKey(Integer dId) {
        return deskMapper.deleteByPrimaryKey(dId);
    }

    @Override
    public int insert(Desk record) {
        return deskMapper.insert(record);
    }

    @Override
    public int insertSelective(Desk record) {
        return deskMapper.insertSelective(record);
    }

    @Override
    public Desk selectByPrimaryKey(Integer dId) {
        return deskMapper.selectByPrimaryKey(dId);
    }

    @Override
    public int updateByPrimaryKeySelective(Desk record) {
        return deskMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Desk record) {
        return deskMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateDeskSidToDeleteStudent(List<String> strings) {
        return deskMapper.updateDeskSidToDeleteStudent(strings);
    }
}
